﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AssetDetail.ascx.vb"
    Inherits="WebForm_AssetMaintain_Component_AssetDetail" %>
    
    <asp:ObjectDataSource ID="dbAssetDef" runat="server" SelectMethod="GetAssetType"
    TypeName="AssetManage.BBL.AssetBBL">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="kind" Type="String" />
        <asp:ControlParameter ControlID="hiDBName" DefaultValue="" Name="dbName" PropertyName="Value"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="dbOAStatus" runat="server" SelectMethod="GetOAStatus" TypeName="AssetManage.BBL.AssetBBL">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="kind" Type="String" />
        <asp:ControlParameter ControlID="hiDBName" DefaultValue="" Name="dbName" PropertyName="Value"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="dbOAFactory" runat="server" SelectMethod="GetOAFactory"
    TypeName="AssetManage.BBL.AssetBBL">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="kind" Type="String" />
        <asp:ControlParameter ControlID="hiDBName" DefaultValue="" Name="dbName" PropertyName="Value"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="dbOAUsingTYpe" runat="server" SelectMethod="GetOAUsingType"
    TypeName="AssetManage.BBL.AssetBBL">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="kind" Type="String" />
        <asp:ControlParameter ControlID="hiDBName" DefaultValue="" Name="dbName" PropertyName="Value"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="dbOAStoreHouse" runat="server" SelectMethod="GetOAStoreHouse"
    TypeName="AssetManage.BBL.AssetBBL">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="kind" Type="String" />
        <asp:ControlParameter ControlID="hiDBName" DefaultValue="" Name="dbName" PropertyName="Value"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
  <asp:HiddenField ID="hiUID" runat="server" />
            <asp:HiddenField ID="hiDBName" runat="server" />
    

    <asp:Panel ID="plDetail" runat="server" BackColor="#E7FEC2" BorderWidth="1" Width="950px"
    ScrollBars="Auto">
    <table border="1">
         <tr>
            <td colspan="8" align="center">
                
                    <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" />
            </td>
        </tr>
        <tr>
            <td colspan="8" align="center">
                <asp:Label ID="lblTitle" runat="server" meta:resourcekey="lblTitle" Font-Bold="True" 
                    Font-Size="20px"></asp:Label>
                   
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblasset_serialNo" runat="server" meta:resourcekey='lblasset_serialNo'></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblasset_serialNo1" runat="server"></asp:Label>
            </td>
            <td align="right">
                <asp:Label ID="lblassetdef_id" runat="server" meta:resourcekey="lblassetdef_id"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlassetdef_id" runat="server" DataSourceID="dbAssetDef" 
                    DataTextField="name" DataValueField="id" Enabled="False" 
                    style="margin-bottom: 0px" Width="150px">
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="lblasset_owner" runat="server" meta:resourcekey='lblasset_owner'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtasset_owner" Width="80px" ReadOnly="True"></asp:TextBox>
                <asp:Label ID="lblownerName" runat="server"></asp:Label>
            </td>
            <td align="right">
                <asp:Label ID="lblEXT" runat="server" meta:resourcekey='lblEXT'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEXT" Width="70px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblasset_status" runat="server" meta:resourcekey='lblasset_status'></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlasset_status" Width="100px" DataSourceID="dbOAStatus"
                    DataTextField="name" DataValueField="id" Enabled="False">
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="lblDept" runat="server" meta:resourcekey='lblDept'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDept" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblMAC1" runat="server" Text="MAC1"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtMAC1" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblMAC2" runat="server" Text="MAC2"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox runat="server" ID="txtMAC2" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblFactory" runat="server" meta:resourcekey='lblFactory'></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlFactory" DataSourceID="dbOAFactory" DataTextField="name"
                    DataValueField="id" Enabled="False">
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="lblClass" runat="server" Text="Class"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtClass" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblLocation" runat="server" Text="Location"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtLocation" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblAsset_Cost" runat="server" meta:resourcekey='lblAsset_Cost'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtAsset_Cost" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblHouseID" runat="server" meta:resourcekey='lblHouseID'></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlHouseID" Enabled="False">
                    <asp:ListItem meta:resourcekey="HouseID1"></asp:ListItem>
                    <asp:ListItem meta:resourcekey="HouseID2"></asp:ListItem>
                    <asp:ListItem meta:resourcekey="HouseID3"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="lblComputerName" runat="server" meta:resourcekey='lblComputerName'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtComputerName" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblModel" runat="server" meta:resourcekey='lblModel'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtModel" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblCPU" runat="server" Text="CPU"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtCPU" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblCD_R" runat="server" Text="CD"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtCD_R" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblCD_RW" runat="server" Text="CDRW"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtCD_RW" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblRAM" runat="server" Text="RAM"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtRAM" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblNBLABEL" runat="server" Text="NBLabel"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNBLabel" runat="server" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblOS" runat="server" Text="OS"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtOS" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblHDD" runat="server" Text="HDD"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtHDD" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblFDD" runat="server" Text="FDD"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFDD" runat="server" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblMonitorSize" runat="server" meta:resourcekey='lblMonitorSize'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtMonitorSize" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblUsingType" runat="server" meta:resourcekey="lblUsingType"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlUsingType" runat="server" DataSourceID="dbOAUsingTYpe" 
                    DataTextField="name" DataValueField="id" Width="120px" Enabled="False">
                </asp:DropDownList>
            </td>
            <td align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblCrtUID" runat="server" meta:resourcekey='lblCrtUID'></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblCrtName" runat="server"></asp:Label>
            </td>
            <td align="right">
                <asp:Label ID="lblCrtDate" runat="server" meta:resourcekey='lblCrtDate'></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblCrtDate1" runat="server"></asp:Label>
            </td>
            <td align="right">
                <asp:Label ID="lblModiUID" runat="server" meta:resourcekey='lblModiUID'></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblModiName" runat="server"></asp:Label>
            </td>
            <td align="right">
                <asp:Label ID="lblModiDate" runat="server" meta:resourcekey='lblModiDate'></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblModiDate1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblStoreLocation" runat="server" meta:resourcekey='lblStoreLocation'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtStoreLocation" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblUser1" runat="server" meta:resourcekey='lblUser1'></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtUser1" ReadOnly="True"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblStoreHouse" runat="server" meta:resourcekey='lblStoreHouse'></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlStoreHouse" DataSourceID="dbOAStoreHouse"
                    DataTextField="name" DataValueField="id" Width="120px" Enabled="False">
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="lblUsingType2" runat="server" meta:resourcekey='lblUsingType2'></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlUsingType2" DataSourceID="dbOAUsingTYpe"
                    DataTextField="name" DataValueField="id" Width="120px" Enabled="False">
                </asp:DropDownList><br />
                <asp:TextBox runat="server" ID="txtUsingDesc" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblOtherRemark" runat="server" meta:resourcekey='lblOtherRemark'></asp:Label>
            </td>
            <td colspan="7">
                <asp:TextBox runat="server" Width="800px" ID="txtOtherRemark" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        
        <tr>
            <td align="right">
                <asp:Label ID="lblPS" runat="server" meta:resourcekey='lblPS'></asp:Label>
            </td>
            <td colspan="7">
                <asp:TextBox runat="server" Width="800px" ID="txtPS" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblRemark" runat="server" Text="Remark"></asp:Label>
            </td>
            <td colspan="7">
                <asp:TextBox runat="server" Width="800px" ID="txtRemark"  ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" SkinID="null" Style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" CancelControlID="btnCancel" X ="20"
    PopupControlID="plDetail" PopupDragHandleControlID="plDetail" TargetControlID="btnDummy" />
